package com.sxhalo.fsms.service.impl;

import com.sxhalo.fsms.domain.SysDeviceAlarm;
import com.sxhalo.fsms.mapper.SysDeviceAlarmMapper;
import com.sxhalo.fsms.service.ISysDeviceAlarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysDeviceAlarmServiceImpl implements ISysDeviceAlarmService {

	@Autowired
	private SysDeviceAlarmMapper mapper;

	@Override
	public Integer insertSelective(SysDeviceAlarm record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective(SysDeviceAlarm record) {

		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		return mapper.deleteByPrimaryKey(Integer.parseInt(key.toString()));
	}

	@Override
	public SysDeviceAlarm selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey(Integer.parseInt(key.toString()));
	}

	@Override
	public List<SysDeviceAlarm> findWhereList(String where, String order) {
		return mapper.findWhereList(where,order);
	}

	@Override
	public Integer getCount(String where) {
		return mapper.getCount(where);
	}

	@Override
	public List<SysDeviceAlarm> findPagerList(Integer start, Integer length, String where, String order) {
		return mapper.findPagerList(start,length,where,order);
	}

	@Override
	public int batchUpdate(SysDeviceAlarm record, String where) {
		return mapper.batchUpdate(record,where);
	}
}
